package com.mercury.ec.module.air.controller.admin.demandorder.vo.demandorder;

import com.mercury.ec.module.air.controller.admin.demandorder.vo.demandscheme.AirDemandSchemeQuoteReqVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "管理后台 - 机票需求订单报价 Request VO")
@Data
public class AirDemandOrderQuoteReqVO {

    @Schema(description = "机票需求单id 见表（air_demand.id）", requiredMode = Schema.RequiredMode.REQUIRED, example = "26965")
    @NotNull(message = "机票需求单id不能为空")
    private Long demandId;

    @Valid
    @Schema(description = "机票需求方案列表", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "机票需求方案列表不能为空")
    private List<AirDemandSchemeQuoteReqVO> demandSchemes;
}
